#include <stdlib.h>
#include <stdio.h>
#include <cmath>
+#include <QtCore/QDateTime>
+#include <QtCore/QString>
#define MYNAME "gopal"
static gbfile* fin, *fout;
static struct tm tm,filenamedate, trackdate;
time_t tx;
char tmp[64];
-char routename[64];
static char* optdate=NULL;
static char* optmaxspeed=NULL;
static char* optminspeed=NULL;
char tbuffer[64];
struct tm tm2;
lat_old=0;
- strftime(routename,sizeof(routename),"Tracklog %c",gmtime(&tx));
+
route = route_head_alloc();
- route->rte_name = routename;
+ QDateTime qtx;
+ qtx.setTimeSpec(Qt::UTC);
+ qtx.setTime_t(tx);
+ route->rte_name = "Tracklog ";
+ route->rte_name += qtx.toString(Qt::ISODate);
+
route_add_head(route);
line=0;
<hdop>0.766000</hdop>
</wpt>
<rte>
- <name>Tracklog Thu Jan 1 00:00:00 1970</name>
+ <name>Tracklog 1970-01-01T00:00:00Z</name>
<rtept lat="50.307048000" lon="8.232662000">
<ele>341.950000</ele>
<time>2009-11-06T21:32:32.529Z</time>